<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./node_modules/vue/dist/vue.js"></script>

</head>
<body>
    <div id="app">
        <!-- 会删除dom节点 -->
        <div v-if="show">{{message}}</div>
        <!-- 不会删除dom 只是让它display=none了 -->
        <div v-show="show">{{message}}</div>
    </div>



    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                show:false,
                message:"hello mtfker"
            }
        })
    </script>
</body>
</html>